<?php /* Smarty version 2.6.16, created on 2009-04-22 22:44:42
         compiled from MysqlMaintenance.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'messages', 'MysqlMaintenance.html', 1, false),array('function', 'language', 'MysqlMaintenance.html', 4, false),array('function', 'url', 'MysqlMaintenance.html', 14, false),array('modifier', 'filesize', 'MysqlMaintenance.html', 21, false),)), $this); ?>
<?php echo smarty_function_messages(array(), $this);?>

<?php if ($this->_tpl_vars['iRepair']): ?>
<div class="border13" style="padding:5px;">
	<b><?php echo smarty_function_language(array('text' => 'admin_tables_fixed'), $this);?>
: <?php echo $this->_tpl_vars['iRepair']; ?>
</b>
</div>
<br />
<?php endif;  if ($this->_tpl_vars['iOptimized']): ?>
<div class="border13" style="padding:5px;">
	<b><?php echo smarty_function_language(array('text' => 'total_tables_optimized'), $this);?>
 <?php echo $this->_tpl_vars['iOptimized']; ?>
</b>
</div>
<br />
<?php endif; ?>
<form method="post" name="myform" action="<?php if (! get ( 'backup' )):  echo smarty_function_url(array('link' => 'admin.extra.mysql'), $this); else:  echo smarty_function_url(array('link' => 'admin.extra.mysql','backup' => 'true'), $this); endif; ?>">
<table cellspacing="0" cellpadding="0" width="100%" class="forumline">
<tr>
	<td class="row-header" colspan="5"><span><?php echo smarty_function_language(array('text' => 'mysql'), $this);?>
</span></td>
</tr>
<tr>
    <td class="catBottom" colspan="5">
        <b> <?php echo smarty_function_language(array('text' => 'total_mysql_db_size'), $this);?>
 </b> <?php echo ((is_array($_tmp=$this->_tpl_vars['iSize'])) ? $this->_run_mod_handler('filesize', true, $_tmp) : smarty_modifier_filesize($_tmp)); ?>
 -
        <?php if (! get ( 'backup' )): ?><b> <?php echo smarty_function_language(array('text' => 'overhead'), $this);?>
 </b> <?php echo ((is_array($_tmp=$this->_tpl_vars['iOverhead'])) ? $this->_run_mod_handler('filesize', true, $_tmp) : smarty_modifier_filesize($_tmp)); ?>
 -<?php endif; ?>
        <b> <?php echo smarty_function_language(array('text' => 'total_tables'), $this);?>
 </b> <?php echo $this->_tpl_vars['iCnt']; ?>

    </td>
</tr>
<?php if (get ( 'backup' )): ?>
<tr>
	<td class="row1" colspan="5">
	<?php echo smarty_function_language(array('text' => 'Mod_Admin.large_backup_notice'), $this);?>

	</td>
</tr>
<?php endif; ?>
        <tr>
        <th style="width:4%; font-size:9pt; text-align:center;">
			<input type="checkbox" value="" onclick="sel('ta');return false;" />
        </th>
            <th style="width:36%;font-size:9pt;">
                <b><?php echo smarty_function_language(array('text' => 'table'), $this);?>
</b>
            </th>
                <th style="width:20%;font-size:9pt;">
             <b><?php echo smarty_function_language(array('text' => 'records'), $this);?>
</b>
        </th>
        		<th style="width:20%;font-size:9pt;">
            <b><?php echo smarty_function_language(array('text' => 'size'), $this);?>
</b>
        </th>
                <th style="width:20%;font-size:9pt;">
                <b><?php echo smarty_function_language(array('text' => 'overhead_235'), $this);?>
</b>
        </th>
        		<?php $_from = $this->_tpl_vars['aItems']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['aitems'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['aitems']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['iKey'] => $this->_tpl_vars['aItem']):
        $this->_foreach['aitems']['iteration']++;
?>
        <tr>
            <td style="width:4%; text-align:center;" class="row1<?php if ((1 & $this->_tpl_vars['iKey'])): ?>b<?php endif; ?>"> <input type="checkbox" name="tables[]" style="border:0px;" value="<?php echo $this->_tpl_vars['aItem']['Name']; ?>
" />  </td>
            <td style="width:36%;" class="row1<?php if ((1 & $this->_tpl_vars['iKey'])): ?>b<?php endif; ?>"> <?php echo $this->_tpl_vars['aItem']['Name']; ?>
   </td>
                         <td style="width:20%;" class="row1<?php if ((1 & $this->_tpl_vars['iKey'])): ?>b<?php endif; ?>"> <?php echo $this->_tpl_vars['aItem']['Rows']; ?>
   </td>
                         <td style="width:20%;" class="row1<?php if ((1 & $this->_tpl_vars['iKey'])): ?>b<?php endif; ?>"> <?php echo ((is_array($_tmp=$this->_tpl_vars['aItem']['Data_length'])) ? $this->_run_mod_handler('filesize', true, $_tmp) : smarty_modifier_filesize($_tmp)); ?>
 </td>
                         <td style="width:20%;" class="row1<?php if ((1 & $this->_tpl_vars['iKey'])): ?>b<?php endif; ?>"> <?php echo ((is_array($_tmp=$this->_tpl_vars['aItem']['Data_free'])) ? $this->_run_mod_handler('filesize', true, $_tmp) : smarty_modifier_filesize($_tmp)); ?>
 </td>
                     </tr>
		<?php endforeach; endif; unset($_from); ?>
        <tr>
            <td class="catBottom" colspan="5" style="text-align:center;">
                <?php if (get ( 'backup' )): ?>
				<input type="submit" name="download" value="<?php echo smarty_function_language(array('text' => 'Mod_Admin.download_backup'), $this);?>
" />
                <?php else: ?>
                <input type="submit" name="act[optimize]" value="<?php echo smarty_function_language(array('text' => 'optimize_table_s'), $this);?>
" />
                <input type="submit" name="act[repair]" value="<?php echo smarty_function_language(array('text' => 'admin_repair_tables'), $this);?>
" />
                <?php endif; ?>
            </td>
        </tr>
</table>
</form>
<br />

<?php if (get ( 'backup' )): ?>
<form method="post" action="<?php echo smarty_function_url(array('link' => 'admin.extra.mysql','backup' => 'true'), $this);?>
">
<div><input type="hidden" name="file" value="<?php echo $this->_tpl_vars['sSavedFile']; ?>
" size="40" /></div>
<table cellspacing="0" cellpadding="0" width="100%" class="forumline">
<tr>
	<td class="row-header"><span><?php echo smarty_function_language(array('text' => 'Mod_Admin.save_backup'), $this);?>
</span></td>
</tr>
<tr>
	<td class="row1">
		<?php echo smarty_function_language(array('text' => 'Mod_Admin.backup_file_location'), $this);?>
: <?php echo $this->_tpl_vars['sSavedFile']; ?>

	</td>
</tr>
<tr>
	<td class="catBottom" style="text-align:center;">
		<input type="submit" name="save" value="<?php echo smarty_function_language(array('text' => 'Mod_Admin.save_backup_button'), $this);?>
" />
	</td>
</tr>
</table>
</form>
<?php endif; ?>

<br />